<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: aqua;
        }
    </style>
</head>

<body>

    <button class="b1">返回上一页</button>
    <button class="b2">照相</button>

    
    <script src="./asweb-sdk.umd.js"></script>
    <script>
        // let result = location.search.slice(9)
        // result = decodeURI(result)
        // document.body.innerHTML = result

        document.querySelector('.b1').addEventListener('click', () => {
            has.navPathStack.pop({
                callback: (err, res) => {
                    console.log(err, JSON.stringify(err));

                }
            });
        })
        document.querySelector('.b2').addEventListener('click', () => {
            has.cameraPicker.pick({
                mediaTypes: ['photo', 'video'],
                cameraPosition: 1,
                saveUri: '',
                videoDuration: 30,
                callback: (err, res) => {
                }
            });
        })

    </script>
</body>

</html>